<?php

class Adept_Db_MySql_Statement_Query extends Adept_Db_MySql_Statement 
{
    
    public function getOneValue() 
    {
        return $this->getRecordSet()->getOneValue();
    }
    
    public function getOneColumnAsArray() 
    {
        return $this->getRecordSet()->getOneColumn();
    }
    
    public function getTwoColumnsAsArray() 
    {
        return $this->getRecordSet()->getTwoColumns();
    }
    
    public function getFirstRecord() 
    {
        return $this->getRecordSet()->getFirstRecord();
    }
    
    public function getAllRecords($keyField = null)
    {
        return $this->getRecordSet()->toArray();
    }
    
    public function getRecordSet() {
        return $this->getAssocRecordSet();
    }
    
    public function getAssocRecordSet() {
        return new Adept_Db_MySql_RecordSet($this->connection, $this->getSql(), MYSQL_ASSOC);
    }
    
    public function getNumericRecordSet() {
        return new Adept_Db_MySql_RecordSet($this->connection, $this->getSql(), MYSQL_NUM);
    }
    
}
